Skip to content

Updates to JAX flash attention kernel.#4578

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952800018
Open

Updates to JAX flash attention kernel.#4578
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952800018

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Updates to JAX flash attention kernel.

  • Sink jnp.dynamic-slice instructions fetching blocks of q, k and v into the inner loop.
  • Forced final @v layout for better utilization
  • Forcing fusions with must_fuse_call
  • Removed calculations related to mask blocking when the mask is causal

FUTURE_COPYBARA_INTEGRATE_REVIEW=#4504 from AI-Hypercomputer:fix/nnx_layers 90f5201

- Sink jnp.dynamic-slice instructions fetching blocks of q, k and v into the inner loop.
- Forced final @v layout for better utilization
- Forcing fusions with must_fuse_call
- Removed calculations related to mask blocking when the mask is causal

FUTURE_COPYBARA_INTEGRATE_REVIEW=#4504 from AI-Hypercomputer:fix/nnx_layers 90f5201
PiperOrigin-RevId: 952800018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant